#include "ContinuityCounterController.h"

ContinuityCounterController::ContinuityCounterController(unsigned int mod)
{
this->mod = mod;
}

bool ContinuityCounterController::push(unsigned int cc)
{

 if ((this->last_cc + 1) % mod == cc)
 {
	 this->last_cc = cc;
	 return true;
 }else{
	 return false;
 }
}
